<%=form_for @topic, html: {class: "form"}  do |f|%>
	<!-- 渲染错误信息-->
	<div class="form-group">
		<div class="input-group">
			<span class="input-group-btn node-select">
				<%= grouped_collection_select(:topic,:node_id,Section.all,:nodes,:name,:id,:name,{value: @topic.node_id,prompt:'选择节点'},{'data-width' => '140px', 'data-live-search' => 'true',class:' selectpicker'})%>
			</span>
			<%= f.text_field :title,class:'form-control',placeholder:'这里填写标题'%>
		</div>
	</div>
	<div class="form-group">
		<%= f.text_area :body,class:'form-control',rows: 20%>
	</div>
	<div class="form-group">
		<%= f.submit '保存',class:'btn btn-primary'%>
	</div>

	<%= debug params%>
<%end%>
